package Error;

import javax.swing.JOptionPane;

import View.MainUI;

public class Errormanager {
	public final static int FileNotFound = 1;
	public final static int FileCanNotOpen = 2;
	private int number = 0;
	
	public Errormanager() {
	}

	public void show() {
		switch(number) {
			case FileNotFound:
				JOptionPane.showMessageDialog(null,
					    "File Not Found!",
					    "Error",
					    JOptionPane.ERROR_MESSAGE,
					    null);
				break;
			case FileCanNotOpen:
				JOptionPane.showMessageDialog(null,
					    "File can not open!",
					    "Error",
					    JOptionPane.ERROR_MESSAGE,
					    null);
				break;
			default:
				break;
		}
	}

	public void setNumber(int number) {
		this.number = number;
	}

	
}
